﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Libs.Content;

public partial class Controls_News_Images : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack) return;

        NewsWeb _NewsWeb = new NewsWeb();
        List<NewsWeb> list;
        list = _NewsWeb.GetList(28, 0, 2);
        _NewsWeb = list[0];
        imgNews.ImageUrl = AppUtils.ImageUrl(_NewsWeb.ImageUrl, "230", "152");
        hlNews.Text = _NewsWeb.Title;
        hlNews.NavigateUrl = _NewsWeb.Url;
    }
}